package com.hzncc.flowable_diboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.entity.BaseModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;

/**
* 钉钉群聊 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-07-11
* Copyright © MyCorp
*/

@TableName("mdl_ding_ding_group")
@Getter @Setter @Accessors(chain = true)
public class DingDingGroup extends BaseModel {
    private static final long serialVersionUID = 1169390239011713986L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 编码
     */
    @Length(max=20, message="编码长度应小于20")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String code;

    /**
     * 群聊名称
     */
    @Length(max=20, message="群聊名称长度应小于20")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String name;

    /**
     * 开放id
     */
    @Length(max=100, message="开放id长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String openConversationId;

    /**
     * 管理员
     */
    @Length(max=100, message="管理员长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String manager;

    /**
     * 部门
     */
    @Length(max=32, message="部门长度应小于32")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String orgId;


}